<?php

namespace catchAdmin\externalGoods\event;

use catchAdmin\externalGoods\model\XinshengNotify;
use catchAdmin\permissions\model\Permissions;
use catcher\CatchAdmin;
use think\facade\Db;

class XinshengNotifyEvent
{
    public function handle($params)
    {

        $id = app(XinshengNotify::class)->storeBy([
            'orderId'=>$params['head']['orderId'],
            'head' => $params['head'],
            'content' => $params['content'],
            'serCode' => $params['head']['serCode'],
            'created_at' => time(),
        ]);

        return $id;
    }
}
